cmake_minimum_required(VERSION 3.10) 
project(utils)
# set(CMAKE_C_COMPILER "/usr/bin/clang")
# set(CMAKE_CXX_COMPILER "/usr/bin/clang++")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -march=haswell")
# Add your source files here
set(SOURCES
    utils.cpp
    # ...
)
add_library(utils STATIC ${SOURCES})  # 添加可执行文件目标，指定主源文件路径和名称 